﻿/***********************************************************************
 * <copyright file="PermissionDto.cs" company="B/S JSC">
 * -->    Copyright (C) statement. All right reserved
 * </copyright>
 * 
 * Created:   Hoang Bich Son 
 * Email:    sonhb@newman.vn
 * Website:
 * Create Date: Saturday, March 29, 2014
 * Usage: 
 * 
 * RevisionHistory: 
 * Date         Author               Description 
 * 
 * ************************************************************************/

using System.Collections.Generic;
using System.Runtime.Serialization;

namespace SecurityService.DataTransferObjects
{
    /// <summary>
    /// PermissionDto class
    /// </summary>
    [DataContract(Name = "PermissionDto", Namespace = "http://www.yourcompany.com/types/")]
    public class PermissionDto
    {
        /// <summary>
        /// Gets or sets the identifier.
        /// </summary>
        /// <value>
        /// The identifier.
        /// </value>
        [DataMember]
        public int Id { get; set; }

        /// <summary>
        /// Gets or sets the title.
        /// </summary>
        /// <value>
        /// The title.
        /// </value>
        [DataMember]
        public string Title { get; set; }

        /// <summary>
        /// Gets or sets the code.
        /// </summary>
        /// <value>
        /// The code.
        /// </value>
        [DataMember]
        public string Code { get; set; }

        /// <summary>
        /// Gets or sets the description.
        /// </summary>
        /// <value>
        /// The description.
        /// </value>
        [DataMember]
        public string Description { get; set; }

        /// <summary>
        /// Gets or sets the order.
        /// </summary>
        /// <value>
        /// The order.
        /// </value>
        [DataMember]
        public int Order { get; set; }

        /// <summary>
        /// Gets or sets a value indicating whether [status].
        /// </summary>
        /// <value>
        ///   <c>true</c> if [status]; otherwise, <c>false</c>.
        /// </value>
        [DataMember]
        public bool Status { get; set; }

        /// <summary>
        /// Gets or sets a value indicating whether [show default].
        /// </summary>
        /// <value>
        ///   <c>true</c> if [show default]; otherwise, <c>false</c>.
        /// </value>
        [DataMember]
        public bool ShowDefault { get; set; }

        /// <summary>
        /// Gets or sets a value indicating whether [has image].
        /// </summary>
        /// <value>
        ///   <c>true</c> if [has image]; otherwise, <c>false</c>.
        /// </value>
        [DataMember]
        public bool HasImage { get; set; }

        /// <summary>
        /// Gets or sets a value indicating whether [multi row].
        /// </summary>
        /// <value>
        ///   <c>true</c> if [multi row]; otherwise, <c>false</c>.
        /// </value>
        [DataMember]
        public bool MultiRow { get; set; }

        /// <summary>
        /// Gets or sets the roles.
        /// </summary>
        /// <value>
        /// The roles.
        /// </value>
        [DataMember]
        public List<RoleDto> Roles { get; set; } 
    }
}
